@import './theme.scss';

$boxHeight: 100%;

html body {
	font-family: Arial, "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif, "SimSun";
	margin: 0;
	overflow: hidden;
}

.transfer-box {
	width: calc(50% - 32px);
	height: 100%;
	background: #fff;
}


/** 树形全局样式 */
.ant-ztree {
	& li span.ant-ztree-check {
		margin: 0!important;
	}
	.ant-ztree-check {
		&.ant-ztree-check-disabled {
			.ant-ztree-check-inner {
				background-color: #f5f5f5;
			}
			.ant-ztree-check-inner::after {
				background-color: #f5f5f5;
			}
		}
	}
}
.ant-ztree-child-tree>li:first-child{
	padding-top: 0px!important;
}
.ant-ztree li {
	padding: 0!important;
}
.ant-ztree li .ant-ztree-content.ant-ztree-node_selected {
	background-color: $hoverColor!important;
}
.ant-ztree li .ant-ztree-content{
	padding: 0 4px 0 0 !important;
	margin: 0 4px!important;
	color: $defaultFontColor!important;
}
.ant-ztree li .ant-ztree-content:hover{
	background-color: $hoverColor!important;
}
.a-tree-custom-style{
	& .tree-title-item{
		color: $defaultFontColor;
		margin-left: 4px;
	}
	& .ant-ztree-icon {
		font-size: 16px;
	}
	& .tree-node-line-box {
		flex: 1;
		display: flex;
	}
}

// .ant-radio-group {
// 	.ant-radio-wrapper-checked {
// 		.ant-radio-inner {
// 			border-color: $commonBlue;
// 		}
// 		.ant-radio-inner::after {
// 			background-color: $commonBlue;
// 		}
// 	}
// }

.modal-box {
	.ant-modal-content {
 		.modal-content {
			 display: flex;
			 & .modal-content-left {
					width: 40px;
				}
				& .modal-content-right{
					flex: 1;
					height: 160px;
					overflow: auto;
					.modal-content-p {
						margin-top: 0px;
						margin-bottom: 5px;
					}
					.modal-content-tip {
						padding-left: 10px;
						margin-bottom: 0px;
					}
				}
		 }
 	}
}

.ant-form {
	& .a-form-item-box > .ant-form-item-label{
		    overflow: hidden;
    		text-overflow: ellipsis;
	}
	& .last-form-item {
		margin-bottom: 0;
	}
}


.ant-input-affix-wrapper .ant-input:not(:last-child){
	padding-right: 0;
}


/** radio全局样式 */
.ant-radio {
	.ant-radio-inner{
		border: 1px solid $checkBorderColor;
	}
	&.ant-radio-disabled .ant-radio-inner {
		background-color: $checkDisabledBackground
	}
}

/** 全局checkbox样式 */
.ant-checkbox {
	.ant-checkbox-inner {
		border: 1px solid $checkBorderColor;
	}
	&.ant-checkbox-disabled .ant-checkbox-inner{
		background-color: $checkDisabledBackground
	}
}

/** 树checkbox样式 */
.ant-ztree-check {
	.ant-ztree-check-inner {
		border: 1px solid $checkBorderColor;
	}
}

/** input公共样式 */
.ant-input {
	border: 1px solid $borderColor;
}

/** select公共样式 */
.ant-select-selection{
	border: 1px solid $borderColor;
}
.ant-select-dropdown {
	z-index: 666!important;
}

/** 去掉model的动画 */
.zoom-enter,.fade-enter{
	opacity: 1!important;
	animation: none !important;
}
.zoom-leave,.fade-leave{
	opacity: 0!important;
	animation: none !important;
}
/* 模态框默认顶部10，避免不必要的滚动条 */
body .ant-modal{
	top: 10px;
}

/** 提示框 */
.ant-message {
	z-index: 999999!important;
}

/** 右侧顶部按钮样式 */
.choose-list-top-btns-save {
	margin-left: 14px;
	cursor: pointer;
	color: $postDefalutFontColor;

	&:hover {
		color: #1f85ec;
	}
	&::before{
		content: '';
		display: inline-block;
		width: 1px;
		height: 14px;
		background: $borderColor;
		margin: 9px 14px 0 0;
		float: left;
	}
	@include clearFix();
	& .choose-list-top-btns-save-label {
		height: 31px;
		line-height: 31px;
	}
}